<div class="row searchLineWrap">
	<form class="form-horizontal" method="post" action="${cxt!}/admin/role/list" id="searchForm">
		<div class="col-md-12"> 
	  		<div class="row">
	    		<div class="col-md-4">
	      			<div class="form-group">
	         			<label  class="col-md-3 control-label">${_res["role.id"]}</label>
	         			<div class="col-md-9">
	            				<input type="text" class="form-control" name="customerRole.l_id" placeholder="${_res['role.id']}" value="${paramMap['customerRole.l_id']}"/>
	         			</div>
	       			</div>
	    		</div>
	    		<div class="col-md-4">
	      			<div class="form-group">
	         			<label  class="col-md-3 control-label">${_res["role.categoryName"]}</label>
	         			<div class="col-md-9">
	          	 				<#dict type="select" name="customerRole.f_categoryid" table="customer_role_category" filedName="name" filedValue="id" defaultValue="${paramMap['customerRole.f_categoryid']}"/>
	         			</div>
	       			</div>
	    		</div>
	   	 		<div class="col-md-4">
	      			<div class="form-group">
	         			<label  class="col-md-3 control-label">${_res["category.nameen"]}</label>
	         			<div class="col-md-9">
	          					<input type="text" class="form-control"  name="customerRole.l_nameen" placeholder="${_res['category.nameen']}" value="${paramMap['customerRole.l_nameen']}"/>
	         			</div>
	       			</div>
	    		</div>
	  		</div>
	  		<div class="row">
	   			<div class="col-md-4">
	         		<div class="form-group">
	           			<label class="col-md-3 control-label">${_res["category.name"]}</label>
	           			<div class="col-md-9">
	               				<input type="text" class="form-control" name="customerRole.l_name" placeholder="${_res['category.name']}" value="${paramMap['customerRole.l_name']}"  />
	           			</div>
	       			</div>
	     		</div>
	    		<div class="col-md-4">
	      			<div class="form-group">
	         			<div class="col-md-9">
	         			</div>
	       			</div>
	     		</div>
	    		<div class="col-md-4">
	        		<div class="form-group">
	           			<label class="col-md-3 control-label"></label>
	           				<div class="col-md-9">
	             					<button type="button" class="btn btn-primary pull-right" onclick="ajaxForm('content','searchForm')">
	          							<i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}
	          						</button>
	           				</div>
	        		</div>
	    		</div>
	  		</div>
	  	</div>
	 </form>
</div>
<div id="dataTable" class="ibox row searchLineWrap">
	<div class="float-e-margins">
		<button type="button" class="btn btn-primary pull-left" onclick="ajaxContent('/admin/toUrl?toUrl=/realty/customer/role/add.html');">
			${_res["role.add"]}
		</button> 
	</div>
	<table class="table table-bordered table-hover dataTables-example">
	    <thead>
	        <tr>
	            <th>${_res["role.id"]}</th>
	            <th>${_res["category.name"]}</th>
	            <th>${_res["category.nameen"]}</th>
	            <th>${_res["role.categoryName"]}</th>
	            <th>${_res["system.operator"]}</th>
	          </tr> 
	    </thead>
	    <tbody>
	        <%for (role in customerRoleList!){%> 
	         <tr class="gradeC">
	            <td>${role.id!}</td> 
	            <td>${role.name!}</td>
	            <td>${role.nameen!}</td>
	            <td><#dict type="lable" table="customer_role_category" filedName="name" filedValue="id" value="${role.categoryid!}" /></td>
	            <td>
	            	<% if(hasPrivilegeUrl("userRoleInput")){ %>
	               <button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/admin/role/input/${role.id!}')">${_res["system.edit"]}</button>
	               <%}if(hasPrivilegeUrl("userRoleDelete")){%>
	               <button type="button" class="btn btn-sm btn-link" onClick="ajaxDelete('/admin/role/delete/${role.id!}')">${_res["system.delete"]}</button>
	            	<%}%>
	            </td>
	       </tr>
	       <%}%>
	    </tbody> 
	</table>
	<div id="splitPageDiv">
		<#page formId="searchForm"/>
	</div>
	<#nav />
</div>
